package cn.tedu.spring.example;

import org.springframework.stereotype.Component;

/**
 * Component注解: 标识该类为spring的组件,spring framework会为该类创建对象;
 */
@Component
public class User {
    public void run(){
        System.out.println("周六上班,真好");
    }
}
